package com.leyou.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author cyb
 * @since 2022-07-14
 */
@Getter
@Setter
  @TableName("order_shop")
@ApiModel(value = "OrderShop对象", description = "")
public class OrderShop implements Serializable {

    private static final long serialVersionUID = 1L;


  @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("订单编号")
      private Integer orderNum;

      @ApiModelProperty("用户id")
      private Integer userId;

    private String statu;

      @ApiModelProperty("商品名称")
      private String commodityName;

      @ApiModelProperty("商品数量")
      private Integer commodityNum;

      @ApiModelProperty("订单金额")
      private BigDecimal orderMoney;

      @ApiModelProperty("实际消费金额")
      private BigDecimal practicalMoney;

      @ApiModelProperty("优惠券抵扣金额")
      private BigDecimal couponDeduction;

      @ApiModelProperty("储值卡抵扣")
      private BigDecimal valueCard;

      @ApiModelProperty("返现")
      private BigDecimal returnMoney;
      @ApiModelProperty("支付方式")
      private BigDecimal payType;

      @ApiModelProperty("业务员")
      private String workUser;

      @ApiModelProperty("提成金额")
      private BigDecimal commissionAmount;

    private Date createTime;

    @TableField(exist = false)
    private Integer totalByType;


}
